﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using vudu.Logica.Fachada;
using vudu.Logica.Clases;
using vudu.Presentacion.Contrato.VU_05_Gestionar_Practicas_por_Materia;
using vudu.Presentacion.Presentador.VU_05_Gestionar_Practicas_por_Materia;

namespace vudu.Presentacion.Vista.VU_05_Gestionar_Practicas_por_Materia
{
    public partial class AgregarSeccionPractica : System.Web.UI.Page, IContratoAgregarSeccionPractica
    {
        private PresentadorAgregarSeccionPractica _presentador;
        
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                _presentador = new PresentadorAgregarSeccionPractica(this/*, (EnlaceLogico)Session["Fachada"]*/);
                _presentador.LoadDdlMateria();
            }
        }

        protected void ddlMateria_onselectedindexchanged(object sender, EventArgs e)
        {
            _presentador = new PresentadorAgregarSeccionPractica(this/*, (EnlaceLogico)Session["Fachada"]*/);
            _presentador.UnLoadDdlSeccTeoria();
            _presentador.LoadDdlSeccTeoria(Convert.ToInt32(ddlMateria.SelectedItem.Value));
        }

        protected void ddlSeccTeoria_onselectedindexchanged(object sender, EventArgs e)
        {
            _presentador = new PresentadorAgregarSeccionPractica(this/*, (EnlaceLogico)Session["Fachada"]*/);
            _presentador.UnLoadDdlProfesor();
            _presentador.LoadDdlProfesor(Convert.ToInt32(ddlSeccTeoria.SelectedItem.Value));
        }

        protected void ddlProfesor_onselectedindexchanged(object sender, EventArgs e)
        {
            _presentador = new PresentadorAgregarSeccionPractica(this/*, (EnlaceLogico)Session["Fachada"]*/);
            _presentador.LoadTableHorario(Convert.ToInt32(ddlProfesor.SelectedItem.Value));
        }

        protected void ddlIniLun_onselectedindexchanged(object sender, EventArgs e)
        {
            Response.Write("hola!");
        }

        protected void ddlIniMar_onselectedindexchanged(object sender, EventArgs e)
        {
            Response.Write("hola!");
        }

        protected void ddlIniMie_onselectedindexchanged(object sender, EventArgs e)
        {
            Response.Write("hola!");
        }

        protected void ddlIniJue_onselectedindexchanged(object sender, EventArgs e)
        {
            Response.Write("hola!");
        }

        protected void ddlIniVie_onselectedindexchanged(object sender, EventArgs e)
        {
            Response.Write("hola!");
        }

        protected void ddlFinLun_onselectedindexchanged(object sender, EventArgs e)
        {
            Response.Write("hola!");
        }

        protected void ddlFinMar_onselectedindexchanged(object sender, EventArgs e)
        {
            Response.Write("hola!");
        }

        protected void ddlFinMie_onselectedindexchanged(object sender, EventArgs e)
        {
            Response.Write("hola!");
        }

        protected void ddlFinJue_onselectedindexchanged(object sender, EventArgs e)
        {
            Response.Write("hola!");
        }

        protected void ddlFinVie_onselectedindexchanged(object sender, EventArgs e)
        {
            Response.Write("hola!");
        }

        protected void ddlSalonLun_onselectedindexchanged(object sender, EventArgs e)
        {
            Response.Write("hola!");
        }

        protected void ddlSalonMar_onselectedindexchanged(object sender, EventArgs e)
        {
            Response.Write("hola!");
        }

        protected void ddlSalonMie_onselectedindexchanged(object sender, EventArgs e)
        {
            Response.Write("hola!");
        }

        protected void ddlSalonJue_onselectedindexchanged(object sender, EventArgs e)
        {
            Response.Write("hola!");
        }

        protected void ddlSalonVie_onselectedindexchanged(object sender, EventArgs e)
        {
            Response.Write("hola!");
        }

        protected void btnBackPractica_Click(object sender, EventArgs e)
        {
            Response.Write("hola!");
        }

        protected void btnNextPractica_Click(object sender, EventArgs e)
        {
            Response.Write("hola!");
        }

        #region GUIElements

            public Label LabelEscuela
            {
                get { return labelEscuela; }
            }

            public Label LabelStatus
            {
                get { return labelStatus; }
            }

            public Label LabelOMateria 
            {
                get { return labelOMateria; }
            }

            public Label LabelMateria 
            {
                get { return labelMateria; }
            }

            public DropDownList DdlMateria 
            {
                get { return ddlMateria; }
            }

            public Label LabelOSeccTeoria 
            {
                get { return labelOSeccTeoria; }
            }

            public Label LabelSeccTeoria 
            {
                get { return labelSeccTeoria; }
            }

            public DropDownList DdlSeccTeoria 
            {
                get { return ddlSeccTeoria; }
            }

            public Label LabelHrsEstab
            {
                get { return labelHrsEstab; }
            }

            public Label LabelNumHrsEstab 
            {
                get { return labelNumHrsEstab; }
            }

            public Label LabelOProfesor 
            {
                get { return labelOProfesor; }
            }

            public Label LabelProfesor 
            {
                get { return labelProfesor; }
            }

            public DropDownList DdlProfesor 
            {
                get { return ddlProfesor; }
            }

            public Label LabelOHrsSelect 
            {
                get { return labelOHrsSelect; }
            }

            public Label LabelHrsSelect 
            {
                get { return labelHrsSelect; }
            }

            public Label LabelNumHrsSelect 
            {
                get { return labelNumHrsSelect; }
            }

            public Table TableHorario
            {
                get { return tableHorario; }
            }

        #endregion GUIElements

    }
}